import { Server } from 'node:net'
import { initSDPServer } from '../module/socket/webrtcSocket.ts'

const socket = require('socket.io')

export default function initSocket(server: Server) {
  const io = socket(server, {
    cors: {
      origin: '*',
    },
  })
  // useSocket(io)
  initSDPServer(io)
}
